package org.jeecg.modules.carMoveCode;

import com.alibaba.fastjson.JSONObject;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.extern.slf4j.Slf4j;
import org.jeecg.modules.carMoveCode.service.CarMoveCodeService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

import org.springframework.web.bind.annotation.*;
import org.jeecg.common.api.vo.Result;

/**
 * @description: CAR MOVE CODE API
 * @author: zwf
 * @create: 2025-06-13 11:39
 **/
@Slf4j
@Tag(name = "CAR MOVE CODE API")
@RestController
@RequestMapping("/app/carMoveCode")
public class CarMoveCodeApi {
    @Resource
    private CarMoveCodeService service;

    @PostMapping("/create")
    @Operation(summary = "创建挪车码")
    public Result<String> create(@RequestBody JSONObject params) {
        log.info("参数：{}", params);
        return service.create(params);
    }
}
